
ptg16105617
INDEX 369
ch atser ver 253
CheckQuota func tion312, 313
client, emai l 312
client, SMTP 312
clock example220, 222
clockser ver,con cur rent219
close built-in function226, 228,
251
close,channel 228, 251
clos er goro utine 238, 250
closingachannel 225
closure, lexic al 136
cmplx.Sqrt func tion61
co de
format 3, 6, 9, 48
point, Unico de 67
produc tion301
ColoredPoint example161
comma example73
command, test ing a 308
command-lineargument4,18, 33,
43, 179, 180, 290, 313
comment
/*...*/ 5, 25
// 5, 25
do c 42, 296
// Output 326
comments, +build 296
communic atingsequential pro cesses
(CSP) xiii,217
communic ation, channel 225, 245
comp arabilit y 9, 38, 40, 53, 86, 93,
97, 104
comp arison
ar ray 83
ch annel 225
func tion133
interface 184
map96
op erator == 40, 63
op erator s 40, 93
op erator s,table of53
slice 87
st ring65
st ruc t 104
comp ilation,sep arate284
comp lementoperator ^,bit w ise 53
complex built-in function61
complex type 61
comp osite lit eral 14
comp osite typ e xv,14, 81
comp osition,paral lel224
comp osition,typ e xv,107, 162, 189
compress/bzip2 package361
comp ression361
conceptu alint egr ity xiv
concrete typ e 24, 171, 211, 214
conc urrency 17, 217, 257
excessive 241, 242
safe 275
safety 256, 257, 272, 365
with share d var iables 257
conc urrent
clockser ver 219
direc tor y traversal247
echo ser ver 222
non-blo cking cache 272
we b craw ler 239
confinement,ser ial 262
confinement,var iable 261
consistenc y,sequential 268, 269
const de clarat ion14, 75
cons tant
false boole an 63
generator, iota xiii,77
time.Minute 76
time.Second 164
true boole an 63
types, untyped78
cons tants, pre cisionof78
cons traints, bui ld 296
cont ent ion,lock267, 272
cont ext swit c h 280
continue st atement 24, 46
continue st atement,lab ele d 249
cont rac ts, interfaces as 171
cont rol flow 46
conv ersion
bidirec tion altounidirec tion al
ch annel 231
byte slice tostr ing 73
ch arac ter 71
implicit79
narrow ing 40, 55
numeric79
op erat ion40, 55, 64, 71, 78, 79,
173, 187, 194, 208, 231, 353, 358
rune slice tostr ing 71
rune tostr ing 71
st ring71
st ringtobyteslice 40, 73
st ringtoruneslice 71, 88
unsafe.Pointer 356
copy built-in function89
countdown example244, 245, 246
counting semaphore 241
coverage, statement 318, 320
coverage, test 318
coverage_test example319
CPU profile 324
crawl example240, 242, 243
craw ler,con cur rentweb 239
craw ler,web 119
cr iticalsec tion 263, 270, 275
cross-comp ilation 295
cr yptography 55, 83, 121, 325
crypto/sha256 package83
customSort example190
cyclic dat a st ruc ture337
cyclic testdep endency 314
data
race 259, 267, 275
st ruc ture, cyc lic 337
st ruc ture, rec ursive101, 102, 107
type,bit-s et 77
database driver, MySQL284
database/sql package211, 288
daysAgo func tion114
deadbeef 55, 80
de adlo ck233, 240, 265
de clarat ion
const 14, 75
func 3, 29, 119
import 3, 28, 42, 284, 285, 362
method 40, 155
package 2, 28, 41, 285
package-le vel 28
scop e 45, 137
sh adowing 46, 49, 206, 212
short var iable 5, 7, 30, 31
st atement,short var iable 7
struct 99
type 39
var 5, 30
de clarat ions,order of48
de code example, S-expression347
de coder API, token-b ased 213, 215,
347
de coding, S-expression344
de coding, XML 213
de crementstatement -- 5, 37
dedup example97
de ep equivalence 87, 317, 358
default case in select 246
default case in switch 23
default case intyp e switch 212
defer anonymou s func tion146
defer example150, 151
defer st atement 144, 150, 264
defer red functioncal l 144
delete built-in function94
depth-firs t search algor it hm136
dereference,imp licit159
di agram
helloworld su bst ring69
pip eline228
slice cap acity growt h 90
slice ofmonths84
st ringsharing 65
st ruc t hole 355
thumbnail sequence 238
dig italartifac t example178
Dijkstra, Edsger318
Di lbert 100
direc ted acyclic graph136, 284
direc tor y traversal, con cur rent247
The Go Programming Language
© 2016 Alan A. A. Donovan & Brian W. Kernighan
revision 3b600c, date 29 Sep 2015
From the Library of YIGUANG HU